-- GENERATED SPELL FOR [Darkfallen Bloodbearer] --


function spell0_26115(pUnit, Event) --@Death Coil,Heal--
pUnit:FullCastSpellOnTarget(50668,pUnit)
pUnit:RegisterEvent('Sorts_26115', 600, 1)
end

function spell1_26115(pUnit, Event) --@Icy Touch,n/a--
pUnit:FullCastSpellOnTarget(50349,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26115', 8292, 1)
end

function Sorts_26115(pUnit, Event)
local choix_sorts_26115 = math.random(0, 1)
if choix_sorts_26115 == 0 then
pUnit:RegisterEvent('spell0_26115', 1, 1)
end
if choix_sorts_26115 == 1 then
pUnit:RegisterEvent('spell1_26115', 1, 1)
end
end

function mob26115_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26115', math.random(1500, 3000), 1)
end

function mob26115_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26115_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26115_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26115, 1, 'mob26115_Action')
RegisterUnitEvent(26115, 2, 'mob26115_Leave')
RegisterUnitEvent(26115, 3, 'mob26115_Kill')
RegisterUnitEvent(26115, 4, 'mob26115_Die')
